{extend name="base" /}
{block name="js"}
<script src="__INDEX__/staffs/staffs.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<div class="l-loading" style="display: block" id="htr-loading"></div>
<form autocomplete='off'> 
<input type='hidden' id='staffId' class='ipt' value="{$object['staffId']}"/>
<table class='htr-form htr-box-top'>
  <tr>
     <th width='150'>登录账号 ：</th>
     <td>{$object['loginName']}</td>
  </tr>
  <tr>
     <th>职员名称<font color='red'>*</font>：</th>
     <td><input type="text" id='staffName' class='ipt' value="{$object['staffName']}" maxLength='20' data-rule="职员名称: required;"/></td>
  </tr>
  <tr>
     <th>手机号码<font color='red'>*</font>：</th>
     <td><input type="text" id='staffPhone' class='ipt' value="{$object['staffPhone']}" maxLength='20' data-rule="手机号码: required;"/></td>
  </tr>
  <tr>
     <th>职员编号<font color='red'>*</font>：</th>
     <td><input type="text" id='staffNo' class='ipt' value="{$object['staffNo']}" maxLength='20'/></td>
  </tr>
  <tr>
     <th>职员角色<font color='red'>*</font>：</th>
     <td>
     <select id='staffRoleId' class='ipt'>
        <option value='0'>请选择</option>
        {volist name="roles" id="vo"}
    		<option value="{$vo['roleId']}" {if condition="$object['staffRoleId'] == $vo['roleId']"}selected{/if}>{$vo.roleName}</option>
    		{/volist}
     </select>
     </td>
  </tr>
  <tr>
     <th>账号状态 ：</th>
     <td>
       <label>
          <input type='radio' id='staffStatus1' class='ipt' name='staffStatus' {if condition="$object['staffStatus'] == 1"}checked{/if} value='1'>开启
       </label>
       <label>
          <input type='radio' id='staffStatus0' class='ipt' name='staffStatus' {if condition="$object['staffStatus'] == 0"}checked{/if} value='0'>停用
       </label>
     </td>
  </tr>
  <tr>
     <td colspan='2' align='center'>
       <input type='button' value='保存' class='btn btn-blue' onclick='javascript:save()'>
       <input type='button' value='返回' class='btn' onclick='javascript:history.go(-1)'>
     </td>
  </tr>
</table>
</form>
{/block}